module(..., package.seeall)

-- MQTT_HOST = "47.106.134.96"
-- MQTT_PORT = "1883"
-- MQTT_USER = "lye"
-- MQTT_PASSWORD = "lye123"

-- MQTT_TOPIC2 = "LTYS_Device"
-- MQTT_TOPIC3 = "LTYS_CMD"

ALI_INSTANCEID = "iot-040a0a0k"
ALI_PRODUCTKEY = "gqic481AlEM"
ALI_PRODUCTSECRET = "GLGSQ06wg4M987uH"
ALI_REGION = "cn-shenzhen"

YALI_INSTANCEID = "iot-060a0ccz"
YALI_PRODUCTKEY = "hv9c9A1zjdM"
YALI_PRODUCTSECRET = "Uvp1mLRc4MVGTa2g"
YALI_REGION = "cn-shanghai"

-- Linkta http接口密钥
ACCESS_ID = "d5w3TaOW6fgyvq0K65sdx7yz"
ACCESS_SECRET = "obdHxAt7mMktrATizeOIEtq2BV3IpR"

-- ALI_ACCESS_ID = "LTAI5tBVa21JSnR1tn4C64RZ"
-- ALI_ACCESS_SECRET = "pt7BTPTgGpOL0tp99OnZWxUxFF6pPR"

HW_TOKEN_URL = "https://iot-console.wens.com.cn"
HW_DEVICE_URL = "https://iot-device.wens.com.cn"
HW_IOT_USER = "lzyw"
HW_IOT_PASSWORD = "LZYW@abc123"

HW_PROJECTID = "07ae8a621d684fff93324a7aa7bf057d"
HW_DEV_PRODUCTID = "64a7c7bc9162506e5150c128"

HW_SECRET = "LinktaIot2022"

DEV_LIST = {
    "LXSG|W", "NJSM|W", "DTS866|E", "DT2Y545|E", "DFPM93|E", "32FC|GAS",
    "LXB200|GAS", "XSFT|GAS", "GZNY|GAS", "TJXE|GAS"
}
DEV_BAUD_LIST = {9600, 9600, 9600, 2400, 9600, 9600, 9600, 9600, 9600, 9600}
DEV_PARITY_LIST = {
    uart.PAR_NONE, uart.PAR_NONE, uart.PAR_EVEN, uart.PAR_EVEN, uart.PAR_NONE,
    uart.PAR_NONE, uart.PAR_NONE, uart.PAR_NONE, uart.PAR_NONE, uart.PAR_NONE
}

DEV_ADDR_LIST = {"01", "01", "01", "01", "01", "01", "01", "01", "01"}

SUB_DEV_LIST = {
    {type = "E", dev_type = "DFPM93", baud = 9600, parity = uart.PAR_NONE},
    {type = "E", dev_type = "PZ80L", baud = 9600, parity = uart.PAR_NONE},
    {type = "E", dev_type = "DT2Y545", baud = 2400, parity = uart.PAR_EVEN},
    {type = "E", dev_type = "DTS866", baud = 9600, parity = uart.PAR_EVEN},
    {type = "W", dev_type = "NJSM", baud = 9600, parity = uart.PAR_NONE},
    {type = "W", dev_type = "LXSG", baud = 9600, parity = uart.PAR_NONE},
    {type = "G", dev_type = "32FC", baud = 9600, parity = uart.PAR_NONE},
    {type = "G", dev_type = "LXB200", baud = 9600, parity = uart.PAR_NONE},
    {type = "G", dev_type = "XSFT", baud = 9600, parity = uart.PAR_NONE},
    {type = "G", dev_type = "GZNY", baud = 9600, parity = uart.PAR_NONE},
    {type = "G", dev_type = "TJXE", baud = 9600, parity = uart.PAR_NONE},
    {type = "T", dev_type = "HOSSTEMP", baud = 9600, parity = uart.PAR_NONE},
    {type = "P", dev_type = "HOSSPRESS", baud = 9600, parity = uart.PAR_NONE},
    {type = "F", dev_type = "MITSUBISHI", baud = 9600, parity = uart.PAR_EVEN},
    {type = "L", dev_type = "L-MAG B", baud = 9600, parity = uart.PAR_NONE},
    {type = "L", dev_type = "XSJDL", baud = 9600, parity = uart.PAR_EVEN}
}

HW_TEMP_PRODUCT_KEY = "64bdd6899162506e5150c2e6"
HW_ELECT_PRODUCT_KEY = "643f33786bdaeb1e50ab33ea"
HW_WATER_PRODUCT_KEY = "643df22d60cc563053aec937"
HW_GAS_PRODUCT_KEY = "643f35ea60cc563053aecb3c"
HW_PRESSURE_PRODUCT_KEY = "64bdd69f9162506e5150c2e7"
HW_FREQUENCY_PRODUCT_KEY = "64bf2d1965be31079fef987b"
HW_FLOW_PRODUCT_KEY = "64cc4f369162506e5150c442"